import Vue from 'vue';
import VueRouter from 'vue-router';
 
Vue.use(VueRouter)
 
 
let routes = [
    {
      path:"/",
      // 路由重定向:
      // 虽然访问的是/根路由,但是自动重新转义到/home路由
      redirect: "/home"
    },
    {
        path:'/home',
        component: () => import('@/views/passenger/home')
    }
]
 
const router = new VueRouter({
    routes
})
 
export default router